﻿
@model IEnumerable<Wei.Model.Content_Type_Model>

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="background:#fff;">
    <ul class="layui-tab-title">
        <li class="layui-this">标签分类</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show content_type">
            @{string[] arr = new string[3] {"layui-btn-normal", "layui-btn-warm", "layui-btn-danger" }; }
            @foreach (var item in Model)
            {
                string a = "";
                int b = new Random().Next(0, 3);
                a = arr[b];
                if (item.ct_name == "C#")
                {
                    <a style="margin: 5px 0;" class="layui-btn @a" href="/Home/Content_List?key=&content_type=@item.ct_id&type_name=C%23">@item.ct_name</a>
                }
                else
                {
                    <a style="margin: 5px 0;" class="layui-btn @a" href="/Home/Content_List?key=&content_type=@item.ct_id&type_name=@item.ct_name">@item.ct_name</a>
                }
            }
        </div>
    </div>
</div>